(function() {
    'use strict';

    angular
        .module('zhserverApp')
        .controller('D_m_zhenghe_user_statDeleteController',D_m_zhenghe_user_statDeleteController);

    D_m_zhenghe_user_statDeleteController.$inject = ['$uibModalInstance', 'entity', 'D_m_zhenghe_user_stat'];

    function D_m_zhenghe_user_statDeleteController($uibModalInstance, entity, D_m_zhenghe_user_stat) {
        var vm = this;

        vm.d_m_zhenghe_user_stat = entity;
        vm.clear = clear;
        vm.confirmDelete = confirmDelete;

        function clear () {
            $uibModalInstance.dismiss('cancel');
        }

        function confirmDelete (id) {
            D_m_zhenghe_user_stat.delete({id: id},
                function () {
                    $uibModalInstance.close(true);
                });
        }
    }
})();
